#
#  Entities.py
#  TwoHand
#
#  Created by Pete Lord on 17/12/2008.
#  Copyright (c) 2008 __MyCompanyName__. All rights reserved.
#

class GameEntities():
    def __init__(self):
        self.projectilesLayer1 = [] # decorative shots underneath the game field
        self.projectilesLayer2 = [] # main game stuff
        self.projectilesLayer3 = [] # decorative shots above field
        
        self.shipsLayer1 = []
        self.shipsLayer2 = [] # main layer. Player ship & enemies here.
        self.shipsLayer3 = []
        
    def poll(self):
        for item in self.projectilesLayer2:
            item.poll()
            
        for item in self.shipsLayer2:
            item.poll()
            
    def draw(self):
        for item in self.projectilesLayer2:
            item.draw()
        
        for item in self.shipsLayer2:
            item.draw()